public class Logical_Operator {
    public static void main(String[] args) {
        //逻辑运算符
        boolean a = true;
        boolean b = false;
        System.out.println(a && b);
        System.out.println(a || b);
        System.out.println(!a);
        System.out.println(!b);
        System.out.println(a ^ b);
        System.out.println(a & b);
        System.out.println(a | b);
        System.out.println(a ^ b);
        System.out.println(a && b || a || b);
        System.out.println(" ");

        //布尔表达式形式
        System.out.println(10 < 5 && 10/0 == 0);
        System.out.println(10 > 5 || 10/0 == 0);
        System.out.println(!(10 > 5));
        // System.out.println(10 > 5 ^ 10/0 == 0);
        // System.out.println(10 > 5 & 10/0 == 0);
        // System.out.println(10 > 5 | 10/0 == 0);
        System.out.println(" ");

    }
}
